package Exer03_分支;

import java.util.Scanner;

public class _1_3_2_根据输入的x值输出y1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入：");
        int x = scanner.nextInt();
        if (x < 0){
            System.out.println("输出：y = -1");
        }else if (x == 0){
            System.out.println("输出：y = 0");
        }else {
            System.out.println("输出：y = 1");
        }
        scanner.close();
    }
}
